package com.hust.hui.quick.service.common;

/**
 * Created by yihui on 2017/7/19.
 */
public class ArticleUtil {

    private static final long BASE = 10000000000L;

    /**
     * 是否已经置顶
     *
     * @param sort
     * @return
     */
    public static boolean isUpped(long sort) {
        return sort > BASE;
    }


    public static long getSort(long publishTime) {
        if (publishTime > 0) {
            return BASE + publishTime;
        }

        return 0;
    }

}
